package com.bosssoft.springcloud.service;

import com.bosssoft.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PaymentService {

    /***
     * 查询订单列表
     * @return 订单列表
     */
    List<Payment> getOrderList();

    /***
     * 添加订单
     * @param payment 订单
     * @return
     */
    int create(Payment payment);

    /***
     * 根据订单号查询订单
     * @param id 订单号
     * @return 订单
     */
    Payment getPayentById(@Param("id") long id);

    /***
     * 根据id删除订单
     * @param id
     */
    int removeById(@Param("id") long id);
}
